package com.mti.monitor.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mti.monitor.bean.model.SysMonitorConfig;
import com.mti.monitor.bean.model.SysMonitorErrorLog;
import com.mti.monitor.bean.model.SysMonitorErrorLogExt;
import com.mti.monitor.bean.req.MonitorReq;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * Created by admin on 2020/6/29.
 */
public interface SysMonitorConfigMapper extends BaseMapper<SysMonitorConfig> {

    List<SysMonitorConfig> selectAllList();
    List<SysMonitorErrorLog> selectAllLogList();
    List<SysMonitorConfig> selectPage(MonitorReq req);
    List<SysMonitorErrorLogExt> selectLogPage(int start, int size, Date beginTime, Date endTime, @Param("keyWord") String keyWord);
    Integer selectCount(@Param("keyWord") String keyWord);
    Integer checkExist(@Param("dataSourceId") String dataSourceId);
    Integer selectLogCount(Date beginTime, Date endTime,@Param("keyWord") String keyWord);
    List<SysMonitorConfig> selectActiveList();
    List<SysMonitorConfig> selectActiveUnMonitorList();
}
